import React from 'react';
import { createRoot } from 'react-dom/client';

// import App from './App';
// import App from './ionicA/PhotoGalleryApp/App';
// import App from './ionicA/conferenceApp/App';
import App from './ionicA/IonRouteApp/App';
import { defineCustomElements } from '@ionic/pwa-elements/loader';
defineCustomElements(window);
const container = document.getElementById('root');
const root = createRoot(container!);
root.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
);

// import { useIonRouter } from '@ionic/react';
// import { App } from '@capacitor/app';

// const ionRouter = useIonRouter();
// document.addEventListener('ionBackButton', (ev) => {
//   ev.detail.register(-1, () => {
//     if (!ionRouter.canGoBack()) {
//       App.exitApp();
//     }
//   });
// });